package com.lxn.feignclients;


import com.lxn.fallback.PageStaticFeignClientFallbackFactory;
import com.lxn.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

//value属性：调用目标服务的服务名
@FeignClient(value="page-static-server", fallbackFactory = PageStaticFeignClientFallbackFactory.class)
public interface PageStaticFeignClient {
    @RequestMapping(value="/pager/static",method= RequestMethod.POST)
    AjaxResult pageStatic(@RequestParam("pageName")String pageName, @RequestParam("redisDateKey")String redisDateKey);
}
